#ifndef BODY_MASS_INDEX_FORMULA_H
#define BODY_MASS_INDEX_FORMULA_H

#include "abstractformula.h"


class Body_Mass_Index_Formula : public AbstractFormula
{
public:
    Body_Mass_Index_Formula()
        :AbstractFormula(tr("Body Mass Index")){}

    /*!
    *  \brief BMI
    *  Return BMI
    *  \param weight in kg
    *  \param height in meter
    */

    double result(double weight , double height)
    {
       return weight / (height* height);
    }
};


#endif // BODY_MASS_INDEX_FORMULA_H
